home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
gnu
/
dejagnu.lha
/
dejagnu-1.0.1
/
dejagnu
/
Makefile.in
< prev
next >
Wrap
Makefile
|
1993-05-26
|
7KB
|
226 lines
srcdir = .
prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
tooldir = $(libdir)/$(target_alias)
datadir = $(exec_prefix)/lib/dejagnu
mandir = $(prefix)/man
man1dir = $(mandir)/man1
man2dir = $(mandir)/man2
man3dir = $(mandir)/man3
man4dir = $(mandir)/man4
man5dir = $(mandir)/man5
man6dir = $(mandir)/man6
man7dir = $(mandir)/man7
man8dir = $(mandir)/man8
man9dir = $(mandir)/man9
infodir = $(prefix)/info
includedir = $(prefix)/include
gxx_includedir = $(tooldir)/g++-include
docdir = $(datadir)/doc
targetdir = $(datadir)/$(target_canonical)
SHELL = /bin/sh
INSTALL = install -c
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL)
CFLAGS = -g
CHILLFLAGS = $(CFLAGS)
CHILL_LIB = -lchill
CXX = gcc
CXXFLAGS = -g -O
LINK= ln -s
SUBDIRS=
GDB = gdb
GDBFLAGS = -nx
CHILL = gcc
CHILLFLAGS = -g
EXPECT = expect
EXPECTFLAGS =
MAKEINFO = makeinfo
MAKEINFOFLAGS =
FLAGS_TO_PASS = \
"CC=$(CC)" \
"CFLAGS=$(CFLAGS)" \
"INSTALL=$(INSTALL)" \
"INSTALL_DATA=$(INSTALL_DATA)" \
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
"LDFLAGS=$(LDFLAGS)" \
"MAKEINFO=$(MAKEINFO)" \
"RUNTEST=$(RUNTEST)" \
"RUNTESTFLAGS=$(RUNTESTFLAGS)" \
"exec_prefix=$(exec_prefix)" \
"prefix=$(prefix)" \
"tooldir=$(tooldir)"
#### host, target, and site specific Makefile frags come in here.
all: site.exp subdirs
.PHONY: check installcheck
check:
installcheck:
.NOEXPORT:
MAKEOVERRIDES=
INFODIRS=doc
dvi info:
@rootme=`pwd`/ ; export rootme ; \
rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
$(MAKE) subdir_do DO=$@ "DODIRS=$(INFODIRS)" $(FLAGS_TO_PASS)
install-info:
@rootme=`pwd`/ ; export rootme ; \
$(MAKE) subdir_do DO=install-info "DODIRS=$(INFODIRS)" $(FLAGS_TO_PASS)
install: site.exp
-parent=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \
if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
-if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
-if [ -d $(mandir) ] ; then true ; else mkdir $(mandir) ; fi
-if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
-if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; fi
-if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; fi
-if [ -d $(datadir) ] ; then true ; else mkdir $(datadir) ; fi
-if [ -d $(targetdir) ] ; then true ; else mkdir $(targetdir); fi
-if [ "$(host_canonical)" = "$(target_canonical)" ]; then \
if [ -d $(datadir)/native ] ; then true; else mkdir $(datadir)/native ; fi ; \
fi ; \
$(INSTALL_PROGRAM) $(srcdir)/runtest $(bindir)/runtest
$(INSTALL_PROGRAM) $(srcdir)/runtest $(bindir)/$(target_alias)-runtest
$(INSTALL_PROGRAM) $(srcdir)/runtest.exp $(datadir)/runtest.exp
if [ "$(host_canonical)" = "$(target_canonical)" ]; then \
$(INSTALL_DATA) site.exp $(datadir)/native/site.exp ; \
fi ; \
$(INSTALL_DATA) site.exp $(targetdir)/site.exp
-for file in $(srcdir)/lib/*.exp; \
do \
$(INSTALL_DATA) $$file $(datadir) ; \
done
@rootme=`pwd`/ ; export rootme ; \
$(MAKE) subdir_do DO=install "DODIRS=$(INFODIRS)" $(FLAGS_TO_PASS)
uninstall: force
-rm -f $(bindir)/$(target_alias)-runtest
-rm -f $(bindir)/runtest
-rm -fr $(targetdir)
subdir_do: force
@for i in $(DODIRS); do \
if [ -d ./$$i ] ; then \
if (rootme=`pwd`/ ; export rootme ; \
rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
cd ./$$i; \
$(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
else exit 1 ; fi ; \
else true ; fi ; \
done
force:
subdirs:
@for dir in ${SUBDIRS}; \
do \
echo "$$dir:"; \
if [ -d $$dir ]; then \
(rootme=`pwd`/ ; export rootme ; \
rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
fi; \
done
clean:
-rm -f *~ core *.o a.out xgdb *.x
for dir in ${SUBDIRS}; \
do \
echo "$$dir:"; \
if [ -d $$dir ]; then \
(cd $$dir; $(MAKE) clean); \
fi; \
done
distclean: clean
-rm -f *~ core
-rm -f Makefile config.status *-init.exp site.*
-rm -fr *.log summary detail *.sum
for dir in ${SUBDIRS}; \
do \
echo "$$dir:"; \
(cd $$dir; $(MAKE) distclean); \
done
site.exp: Makefile
@echo "Making a new config file..."
-@rm -f ./tmp?
@touch site.exp
-@mv site.exp site.bak
@echo "## these variables are automatically generated by make ##" > ./tmp0
@echo "# Do not edit here. If you wish to override these values" >> ./tmp0
@echo "# add them to the last section" >> ./tmp0
@echo "set CC \"${CC}\"" >> ./tmp0
@echo "set CXX \"${CXX}\"" >> ./tmp0
@echo "set CFLAGS \"${CFLAGS}\"" >> ./tmp0
@echo "set CXXFLAGS \"${CXXFLAGS}\"" >> ./tmp0
@echo "set CHILL \"${CHILL}\"" >> ./tmp0
@echo "set CHILLFLAGS \"${CHILLFLAGS}\"" >> ./tmp0
@echo "set AS \"${AS}\"" >> ./tmp0
@echo "set ASFLAGS \"${ASFLAGS}\"" >> ./tmp0
@echo "set FC \"${FC}\"" >> ./tmp0
@echo "set FCFLAGS \"${FCFLAGS}\"" >> ./tmp0
@echo "set LD \"${LD}\"" >> ./tmp0
@echo "set LDFLAGS \"${LDFLAGS}\"" >> ./tmp0
@echo "set LIBS \"${LIBS}\"" >> ./tmp0
@echo "set RANLIB \"${RANLIB}\"" >> ./tmp0
@echo "set RANLIBFLAGS \"${RANLIBFLAGS}\"" >> ./tmp0
@echo "set NM \"${NM}\"" >> ./tmp0
@echo "set NMFLAGS \"${NMFLAGS}\"" >> ./tmp0
@echo "set SIZE \"${SIZE}\"" >> ./tmp0
@echo "set SIZEFLAGS \"${SIZEFLAGS}\"" >> ./tmp0
@echo "set STRIP \"${STRIP}\"" >> ./tmp0
@echo "set STRIPFLAGS \"${STRIPFLAGS}\"" >> ./tmp0
@echo "set OBJDUMP \"${OBJDUMP}\"" >> ./tmp0
@echo "set OBJDUMPFLAGS \"${OBJDUMPFLAGS}\"" >> ./tmp0
@echo "set DEMANGLE \"${DEMANGLE}\"" >> ./tmp0
@echo "set DEMANGLEFLAGS \"${DEMANGLEFLAGS}\"" >> ./tmp0
@echo "set COPY \"${COPY}\"" >> ./tmp0
@echo "set COPYFLAGS \"${COPYFLAGS}\"" >> ./tmp0
@echo "set LEX \"${LEX}\"" >> ./tmp0
@echo "set LEXFLAGS \"${LEXFLAGS}\"" >> ./tmp0
@echo "set YACC \"${YACC}\"" >> ./tmp0
@echo "set YACCFLAGS \"${YACCFLAGS}\"" >> ./tmp0
@echo "set AR \"${AR}\"" >> ./tmp0
@echo "set ARFLAGS \"${ARFLAGS}\"" >> ./tmp0
@echo "set CPP \"${CPP}\"" >> ./tmp0
@echo "set CPPFLAGS \"${CPPFLAGS}\"" >> ./tmp0
@echo "set GDB \"${GDB}\"" >> ./tmp0
@echo "set GDBFLAGS \"${GDBFLAGS}\"" >> ./tmp0
@echo "set DIFF \"${DIFF}\"" >> ./tmp0
@echo "set DIFFFLAGS \"${DIFFFLAGS}\"" >> ./tmp0
@echo "set CALC \"calc\"" >> ./tmp0
@echo "set MAKEINFO \"${MAKEINFO}\"" >> ./tmp0
@echo "set MAKEINFOFLAGS \"${MAKEINFOFLAGS}\"" >> ./tmp0
@echo "set EXPECT \"${EXPECT}\"" >> ./tmp0
@echo "set EXPECTFLAGS \"${EXPECTFLAGS}\"" >> ./tmp0
@echo "set host_triplet ${host_canonical}" >> ./tmp0
@echo "set target_triplet ${target_canonical}" >> ./tmp0
@echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
@cat ./tmp0 > site.exp
@cat site.bak | sed \
-e '1,/^## All variables above are.*##/ d' >> site.exp
@rm -f ./tmp1 ./tmp0
Makefile : $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
$(SHELL) ./config.status